<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class Comments extends Model
{
    public function users()
    {
        return $this->belongsTo(Users::class, 'user_id', 'id');
    }

    public function blogs()
    {
        return $this->belongsTo(Blogs::class, 'blog_id', 'id');
    }
}
